home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0246.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  1.3 KB  |  37 lines

  1. >I tried to unpack some xpk packed files under Amos Pro with xpk commands
  2. >of Easylife extension. Unpacking works fine but there are problems with the
  3. >Amos editor after.
  4. >
  5. >EX.
  6. >This is a simple example of what i did.
  7. >
  8. >Elxpk Load "df1:songs/module.med","HUFF" to 1
  9. >Med Play 1
  10.  
  11.   Well, there's your problem!  You have to use "Med Load" to load a MED
  12. module, because the MED format requires some relocations to be done.  (In
  13. other words, there are some pointers in the module that have to be changed
  14. depending on where in memory the module is loaded.)  Also, MED modules have
  15. to be loaded to chip memory, which the normal Load command (and Elxpk Load
  16. as well) don't to.  What you can do instead is:
  17.  
  18. Elxpk Load "df1:songs/module.med","HUFF" To 1
  19. Bsave "T:module.temp",Start(1) To Start(1)+Length(1)
  20. Erase 1
  21. Med Load "T:module.temp",1
  22. Kill "T:module.temp"
  23. Med Play 1
  24.  
  25. which is slightly more roundabout but works correctly. :)
  26.  
  27. >I had the same problem also with an amos packed picture.
  28.  
  29.   Again, the packed picture bank format has some pointers that have to be
  30. relocated, at least according to the AMOS Pro manual.  Do something like
  31. the above code, but use "Load" instead of "Med Load".
  32.  
  33.   --Andy Church (achurch@goober.mbhs.edu)
  34.     WWW: http://www.mbhs.edu/~achurch/
  35.     AMOS Web Site: http://www.mbhs.edu/~achurch/amos/
  36.  
  37.